import { RouteComponentProps } from "react-router-dom";

// export interface IRouteItem{
//     path:string,
//     // component:React.FC<RouteComponentProps> |React.FC,
//     component:any
//     children?:IRouteItem[],
//     redirect?:string,
    
// }

//路由接口
export interface IRouteItem{
    path: string,
    component?: any,
    // component?: React.FC<RouteComponentProps & {routes?: IRouteItem[]}>,
    redirect?: string,
    children?: IRouteItem []
}
//导航接口
export interface INavItem{
    index:number,
    name:string,

}
//轮播图接口
export interface ILunItem{
    image:string
}
//分类接口
export interface ISmallItem{
    image:string,
    name:string,
    id:string,
}
//首页生活严选接口
export interface YAnItem{
    image:string,
    id:string,
    title:string
}[]


//分类 左边列表
export interface LeftItem{
    name:string
    image:string,
    rankList:[],
    id:number
}

//消息列表
export interface RightItem{
    title:string,
    id:string,
    sendDate:string,
    
}
//我的列表
export interface MineItem{
    nickname:string,
    avatar:string,
    mobile:string
}
//手机验证码
export interface IMobileInfo{
    authCode: string,
    mobile: string
}

//修改昵称
export interface IchanGe{
    mid:string,
    nickname:string,

}
export interface SearcgItem{
    mid:string,
    keyword:string
}

//搜索结果
export interface ISearchRankItem{
    image: string,
    name: string,
    id: string
}

export interface ISearchArticleItem{
    image: string,
    score: number,
    articleType: string,
    nickname: string,
    official: string,
    stick: string,
    id: string,
    avatar: string,
    tag: string,
    title: string
    url: string
}
//首页详情页
export interface detailFace {
    image: string,
    name: string,
    id:string
  }
  //
  export interface RankDropList {
    name: string,
    [key:string]: string
  }